#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <list.h>

#ifdef MAIN
#define list1_test main
#endif
#endif
int list1_test(int, char**)
{
  cout<<"Results of list1_test:"<<endl;
#ifndef ACORN_CFRONT
int array1 [] = { 9, 16, 36 };
int array2 [] = { 1, 4 };
#else
static int array1 [] = { 9, 16, 36 };
static int array2 [] = { 1, 4 };
#endif

  list<int> l1(array1, array1 + 3);
  list<int> l2(array2, array2 + 2);

#ifndef ACORN_CFRONT
  list<int>::iterator i1 = l1.begin();
#else
  list_iterator<int> i1 = l1.begin();
#endif

  l1.splice(i1, l2);

#ifndef ACORN_CFRONT
  list<int>::iterator i2 = l1.begin();
#else
  list_iterator<int> i2 = l1.begin();
#endif

  while(i2 != l1.end())
    cout << *i2++ << endl;
  return 0;
}
